﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminTemplate.Master" AutoEventWireup="true" CodeBehind="CurrentBookings.aspx.cs" Inherits="HotelProject.CurrentBookings" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="imageMap" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
                </asp:ScriptManager>
 <div id="homePageContainer">
        <div id="homePageContent">
        <img name="admin" src="../../Images/background.jpg" width="838" height="632" border="0" id="admin" usemap="#default" alt="" />
        <div id="adminSubPage"> 
            <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
                AllowSorting="True" AutoGenerateColumns="False" 
                BackColor="LightGoldenrodYellow" BorderColor="Tan" BorderWidth="1px" 
                CellPadding="2" DataKeyNames="roomID" DataSourceID="EntityDataSource1" 
                ForeColor="Black" GridLines="None" Width="816px">
                <AlternatingRowStyle BackColor="PaleGoldenrod" />
                <Columns>
                    <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
                    <asp:BoundField DataField="roomID" HeaderText="Room ID" ReadOnly="True" 
                        SortExpression="roomID" >
                    </asp:BoundField>
                    <asp:BoundField DataField="hotelID" HeaderText="Hotel ID" 
                        SortExpression="hotelID" >
                    </asp:BoundField>
                    <asp:BoundField DataField="roomNumber" HeaderText="Room #" 
                        SortExpression="roomNumber" >
                    </asp:BoundField>
                    <asp:BoundField DataField="floorNumber" 
                        HeaderText="Floor #" SortExpression="floorNumber" >
                    </asp:BoundField>
                    <asp:BoundField DataField="bedSize" 
                        HeaderText="Bed Size" SortExpression="bedSize" >
                    </asp:BoundField>
                    <asp:BoundField DataField="price" HeaderText="Price" 
                        SortExpression="price" >
                    </asp:BoundField>
                    <asp:BoundField DataField="view" HeaderText="View" 
                        SortExpression="view" >
                    </asp:BoundField>
                </Columns>
                <FooterStyle BackColor="Tan" />
                <HeaderStyle BackColor="Tan" Font-Bold="True" />
                <PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" 
                    HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
                <SortedAscendingCellStyle BackColor="#FAFAE7" />
                <SortedAscendingHeaderStyle BackColor="#DAC09E" />
                <SortedDescendingCellStyle BackColor="#E1DB9C" />
                <SortedDescendingHeaderStyle BackColor="#C2A47B" />
            </asp:GridView>
            <asp:EntityDataSource ID="EntityDataSource2" runat="server" 
                ConnectionString="name=bshrews2Entities" 
                DefaultContainerName="bshrews2Entities" EnableDelete="True" 
                EnableFlattening="False" EnableInsert="True" EnableUpdate="True" 
                EntitySetName="hotels">
            </asp:EntityDataSource>
            
            <div id=addHotelRoom>
            Hotel ID <asp:TextBox ID="hotelIDTextBox" runat="server"></asp:TextBox>
            Room #  <asp:TextBox ID="roomNumberTextBox" runat="server"></asp:TextBox>
            Floor # <asp:TextBox ID="floorNumberTextBox" runat="server"></asp:TextBox>
            <br />
            Bed Size  <asp:TextBox ID="bedSizeTextBox" runat="server"></asp:TextBox>
            Price  <asp:TextBox ID="priceTextBox" runat="server"></asp:TextBox>
            View  <asp:TextBox ID="viewTextBox" runat="server"></asp:TextBox>
            <asp:Button ID="addRoomButton" runat="server" Text="Add Hotel Room" 
                    onclick="addRoomButton_Click" />
            </div>
            <br />
            <asp:GridView ID="GridView2" runat="server" AllowPaging="True" 
                AllowSorting="True" AutoGenerateColumns="False" 
                BackColor="LightGoldenrodYellow" BorderColor="Tan" BorderWidth="1px" 
                CellPadding="2" DataKeyNames="hotelID" DataSourceID="EntityDataSource2" 
                ForeColor="Black" GridLines="None" PageSize="3" Width="814px">
                <AlternatingRowStyle BackColor="PaleGoldenrod" />
                <Columns>
                    <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
                    <asp:BoundField DataField="hotelID" HeaderText="Hotel ID" ReadOnly="True" 
                        SortExpression="hotelID" />
                    <asp:BoundField DataField="hotelName" HeaderText="Hotel Name" 
                        SortExpression="hotelName" />
                    <asp:BoundField DataField="address" HeaderText="Address" 
                        SortExpression="address" />
                    <asp:BoundField DataField="city" HeaderText="City" SortExpression="city" />
                    <asp:BoundField DataField="state" HeaderText="State" SortExpression="state" />
                    <asp:BoundField DataField="zip" HeaderText="Zip Code" SortExpression="zip" />
                </Columns>
                <FooterStyle BackColor="Tan" />
                <HeaderStyle BackColor="Tan" Font-Bold="True" />
                <PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" 
                    HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
                <SortedAscendingCellStyle BackColor="#FAFAE7" />
                <SortedAscendingHeaderStyle BackColor="#DAC09E" />
                <SortedDescendingCellStyle BackColor="#E1DB9C" />
                <SortedDescendingHeaderStyle BackColor="#C2A47B" />
            </asp:GridView>
            <asp:EntityDataSource ID="EntityDataSource1" runat="server" 
                ConnectionString="name=bshrews2Entities" 
                DefaultContainerName="bshrews2Entities" EnableDelete="True" 
                EnableFlattening="False" EnableInsert="True" EnableUpdate="True" 
                EntitySetName="hotelRooms">
                
            </asp:EntityDataSource>
            <div id=addHotel>
                Hotel Name <asp:TextBox ID="hotelNameTextBox" runat="server"></asp:TextBox>
                Address <asp:TextBox ID="addressTextBox" runat="server"></asp:TextBox>
                City <asp:TextBox ID="cityTextBox" runat="server"></asp:TextBox>
                <br />
                State <asp:TextBox ID="stateTextBox" runat="server"></asp:TextBox>
                Zip Code  <asp:TextBox ID="zipTextBox" runat="server"></asp:TextBox>
                <asp:Button ID="addHotelButton" runat="server" Text="Add Hotel" />
            </div>
            </div>
        </div>
       </div>
</asp:Content>
